package com.sping_boot3.spirng_boot3.entity;

public class Singleton {
    private static Singleton singleton = new Singleton();
    public synchronized static Singleton getsingleton(){
        if(singleton != null){
            return singleton;
        }else {
            singleton = new Singleton();
        }
        return singleton;
    }
}
